<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>

<body>
    <script>
        /* 1.定义3个0到100的随机数变量并且打印出来;
        2.最后输出这三个值得最大值和最小值,并向上取整 */
        let num1 = Math.random();
        num1 *= 100;
        console.log(Math.ceil(num1));
        let num2 = Math.random();
        num2 *= 100;
        console.log(Math.ceil(num2));
        let num3 = Math.random();
        num3 *= 100;
        console.log(Math.ceil(num3));
        console.log(Math.ceil(Math.max(num1, num2, num3)));
        console.log(Math.ceil(Math.min(num1, num2, num3)));
    </script>
</body>

</html>